package com.aatattoo.light_food_service.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * @Author aatattoo
 * @Date 2022/3/1 2:07 下午
 * @msg:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommentMsg {
    //评论或回复的id 回复内容的id
    private int id;
    //type:0-评论 1-回复
    private int type;
    //评论的用户id或回复发起的用户Id
    private int userId;
    //评论的正文或回复的正文
    private String content;
    //评论时间或回复时间
    private Timestamp createTime;
    //评论父ID为动态Id，回复父id为评论id 回复内容的父id
    private int parentId;

}
